/**
 * 未处理信息模块
 */
const router = require('koa-router')()
const util = require('./../utils/util')
const jwt = require('jsonwebtoken')

router.prefix('/leave')

router.get('/count',async (ctx)=>{
    try{
        const token  = ctx.request.headers.authorization.split(' ')[1]
        const payload= jwt.verify(token,'iloveu')
        ctx.body = payload
    }catch(error){
        // ctx.body = util.fail(error)
    }
})
module.exports = router